#Generic code make file nice easy and it works

IN = fukit.cpp
OUT = out
DB = dbg
STD = 0x

.PHONY : run clean new debug build

run: $(OUT)
	./$(OUT)

build: $(OUT)

$(OUT): $(IN)
	g++ -Wall -std=c++$(STD) -o $(OUT) $(IN)

debug: $(DB)

$(DB): $(IN)
	g++ -Wall -g -std=c++$(STD) -o $(DB) $(IN)
	gdb ./$(DB)

new: clean run

clean:
	rm -f $(OUT) $(DB)
